COOKIE_EXPIRE_PERIOD = (1 * 365 * 24 * 60 * 60)
QUERY_STRING_ENCODING = 'utf-8'
LOG_FILE_PATH = "/var/log/souren/search.log"
LOG_DATE_FORMAT = "Y-m-j,H:i:s"
MAX_SNIPPET_LEN = 128
DB_HOST = 'localhost'
DB_USERNAME = 'root'
DB_PASSWD = ''
#SE_HOST = 'localhost'
SE_HOST = '192.168.1.100'
SE_PORT = 3312
MEMCACHED_HOST = 'localhost'

MEMCACHED_PORT = 11211
CHANCE_HANDLED = 0.5
CHANCE_UPDATED = 0.5

MEMCACHED_PORT = 11311
SE_QZONE_IDX_NAME = 'qzone_blog_idx'
SE_QZONE_IDX_NAME = 'qzone_blog_beta_idx'
SE_QQSHUQIAN_IDX_NAME = 'qqshuqian_link_idx'

SEARCH_PAGE_SIZE = 20

PATH_PREFIX='/souren'

MAX_SNIPPET_LEN = 160

MAX_TITLE_LEN = 35
